package com.kmxd.ams.client.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 字典项
 *
 * @author ZuoLG
 * @since 2022-10-10
 */
@Data
@Schema(description = "字典项对象")
public class SysDictItemVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "字典ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long dictId;

  @Schema(description = "字典项编码")
  private String dictItemCode;

  @Schema(description = "字典项名称")
  private String dictItemName;

  @Schema(description = "扩展字段1")
  private String ext1;

  @Schema(description = "扩展字段2")
  private String ext2;

  @Schema(description = "扩展字段3")
  private String ext3;

  @Schema(description = "扩展字段4")
  private String ext4;

  @Schema(description = "扩展字段5")
  private String ext5;

  @Schema(description = "年度为版本")
  private Integer version;

  @Schema(description = "多版本code")
  private String setCode;

  @Schema(description = "排序")
  private Integer sort;

  @Schema(description = "备注")
  private String remarks;

  @Schema(description = "状态 0正常；1停用")
  /** 状态 0正常；1停用 */
  private String status;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}
